package com.jsftoolkit.base;

import java.util.Set;

import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;

/**
 * 
 * Interface for components (and renderers) that need to include scripts and/or
 * stylesheets in the head element.
 * 
 * @author noah
 * 
 */
public interface RequiresResources {

	/**
	 * 
	 * 
	 * @param context
	 * @param component
	 * @return the set of resources to include
	 */
	Set<ResourceInfo> getResources(FacesContext context, UIComponent component);
}
